package com.dtx.singleton.doublelock;

public class DoubleLockSingle {

    private static volatile DoubleLockSingle instance;
    private DoubleLockSingle() {
    }
    public static DoubleLockSingle getInstance(){
        if(null != instance) return instance;
        synchronized (DoubleLockSingle.class){
            if (null == instance){
                instance = new DoubleLockSingle();
            }
        }
        return instance;
    }
}
